package lesson.ch10;

import java.util.ArrayList;

public class PeopleDao {
	private ArrayList<People> list;

	public People getUserByid(int id) {
		return list.get(id);
	}

	public void save(People p) {
		if (list == null)
			list = new ArrayList<People>();
		list.add(p);
	}
}
